﻿using Microsoft.Phone.Controls;
using System.Windows.Controls;
using System.ComponentModel;
using System.Windows;
using System;
using System.Net;
using System.Text.RegularExpressions;

namespace wp7cinema.View
{
    /// <summary>
    /// Description for MovieDetailView.
    /// </summary>
    public partial class MovieDetailView : PhoneApplicationPage
    {
        /// <summary>
        /// Initializes a new instance of the MovieDetailView class.
        /// </summary>
        public MovieDetailView()
        {
            InitializeComponent();

            //TheaterSearchBtn.Click += new RoutedEventHandler(TheaterSearchBtn_Click);
        }

        //void TheaterSearchBtn_Click(object sender, RoutedEventArgs e)
        //{
        //    OpenAndClose.CurrentStateChanged += OpenAndClose_CurrentStateChanged;
        //    VisualStateManager.GoToState(this, "Close", true);
        //}

        //void OpenAndClose_CurrentStateChanged(object sender, VisualStateChangedEventArgs e)
        //{
        //    OpenAndClose.CurrentStateChanged -= OpenAndClose_CurrentStateChanged;
        //    NavigationService.Navigate(new Uri("/View/TheaterSearchView.xaml", UriKind.Relative));
        //}

        //protected override void OnBackKeyPress(CancelEventArgs e)
        //{
        //    e.Cancel = true;
        //    OpenAndClose.CurrentStateChanged += GoBack;
        //    VisualStateManager.GoToState(this, "Back", true);
        //}

        //void GoBack(object sender, VisualStateChangedEventArgs e)
        //{
        //    OpenAndClose.CurrentStateChanged -= GoBack;
        //    NavigationService.GoBack();
        //}
    }
}